using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.tuangou.tuangouReceiptBatchconsume
{
    /// <summary>
    /// 单笔验券结果
    /// </summary>
    public class RSingleConsumeResult
    {
        /// <summary>
        /// 单笔验券code
        /// </summary>
        [JsonPropertyName("singleConsumeCode")]
        public int? SingleConsumeCode { get; set; }

        /// <summary>
        /// 单笔验券错误信息
        /// </summary>
        [JsonPropertyName("singleConsumeMsg")]
        public string SingleConsumeMsg { get; set; }

        /// <summary>
        /// 验券详情
        /// </summary>
        [JsonPropertyName("consumeDetailList")]
        public List<ReceiptConsumeResult> ConsumeDetailList { get; set; }

        public override string ToString()
        {
            return $"RSingleConsumeResult{{SingleConsumeCode={SingleConsumeCode}, SingleConsumeMsg={SingleConsumeMsg}, ConsumeDetailList={ConsumeDetailList}}}";
        }
    }
}
